//
//  MWFilterModel.h
//  XiRan-iOS
//
//  Created by liuyiming on 2019/10/28.
//  Copyright © 2019 Wood. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MWFilterModel : NSObject

@property(nonatomic, assign) NSInteger mid;
@property(nonatomic, strong) NSString *attr_name;
@property(nonatomic, strong) NSString *attr_tran;
@property(nonatomic, strong) NSString *remark;
@property(nonatomic, assign) NSInteger sort;
@property(nonatomic, assign) NSInteger type;
@property(nonatomic, assign) NSInteger is_del;
@property(nonatomic, assign) NSInteger import_id;
@property(nonatomic, assign) NSInteger updatetime;
@property(nonatomic, assign) NSInteger createtime;

@property(nonatomic, strong) NSMutableArray *attr_list;

//是否有二级分类
@property (nonatomic) BOOL child;

@property (nonatomic, readonly) NSString *customTypeString;

- (void)addCustomAttribute;

@end

@interface MWAttribute : NSObject

@property(nonatomic, assign) NSInteger mid;
@property(nonatomic, assign) NSInteger kind_id;
@property(nonatomic, strong) NSString *attr_value;
@property(nonatomic, strong) NSString *attr_tran;
@property(nonatomic, assign) NSInteger sort;
@property(nonatomic, assign) NSInteger updatetime;
@property(nonatomic, assign) NSInteger createtime;

@property(nonatomic, assign) BOOL isSelected;
@property(nonatomic, assign) BOOL isEnsure;
@property(nonatomic, strong) NSString *customValue;
@property (nonatomic, strong) NSString *showAttr_value;

@property(nonatomic, strong) NSMutableArray *attr_list;

@end

@interface MWSubattribute : NSObject

@property (nonatomic, copy) NSString *attr_tran;
@property (nonatomic, copy) NSString *attr_value;
@property(nonatomic, assign) NSInteger createtime;
@property(nonatomic, assign) NSInteger mid;
@property(nonatomic, assign) NSInteger kind_id;
@property(nonatomic, assign) NSInteger sort;
@property(nonatomic, assign) NSInteger updatetime;

@property(nonatomic, assign) BOOL isSelected;
@property(nonatomic, assign) BOOL isEnsure;

@end

NS_ASSUME_NONNULL_END
